package com.trademark.script.methods;

import java.awt.Graphics;
import java.awt.Image;

import com.rsbuddy.script.methods.Mouse;

public class Cursor {

	public final static Image DEFAULT = Img.getImage("Mouse.png",
			"http://www.rw-designer.com/cursor-view/25021.png");

	/*
	 * @param image The image to be replacing the mouse's current position
	 * 
	 * @param g1 The variable assigned to your onRepaint graphics method
	 */
	public static void setCursor(final Image image, final Graphics g1) {
		int xCoord = (int) Mouse.getLocation().getX(), yCoord = (int) Mouse
				.getLocation().getY();
		g1.drawImage(image, xCoord, yCoord, null);
	}
}
